import { View, Image } from '@tarojs/components'
import photo from '../../assets/photo.png'
import "taro-ui/dist/style/components/button.scss" // 按需引入
import './index.scss'
import GlobalFooter from '../../components/GlobalFooter'
import {AtButton} from "taro-ui";
import Taro from "@tarojs/taro";

/**
 * 主页
 */
export default () => {
    return (
      <View className='indexPage'>
        <View className='at-article__h1 text1'>
          MBTI性格测试
        </View>
        <View className='at-article__h2 text2'>
          只需2分钟，快速测出你是谁？准确的描述出你的性格的特点
        </View>
        <AtButton className='btn' type='primary' circle onClick={() =>{
          Taro.navigateTo({
            url: '/pages/doQuestion/index',
          })
        }}>开始测试</AtButton>
        <Image className='imagePhoto' src={photo}/>
        <GlobalFooter></GlobalFooter>

      </View>

    )
}
